﻿using UnityEditor;
using UnityEngine;

[CustomEditor(typeof (LoginClass))]
public class LoginEditor : Editor
{
	private LoginClass L;

	private void OnEnable()
	{
		L = (LoginClass) target;
	}

	public override void OnInspectorGUI()
	{
		base.OnInspectorGUI();

		if (GUILayout.Button("Login"))
		{
			L.Login();
		}

		if (GUILayout.Button("Chat"))
		{
			L.Chat();
		}
	}
}
